package cn.iocoder.yudao.module.erp.service.purchaseplan.purchaseengineeringdetail;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchaseengineeringdetail.PurchaseEngineeringDetailPageReqVO;
import cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchaseengineeringdetail.PurchaseEngineeringDetailSaveReqVO;
import cn.iocoder.yudao.module.erp.dal.dataobject.purchaseplan.purchaseengineeringdetail.PurchaseEngineeringDetailDO;

import javax.validation.Valid;
import java.util.List;

/**
 * 工程采购计划明细 Service 接口
 *
 * @author 芋道源码
 */
public interface PurchaseEngineeringDetailService {

    /**
     * 创建工程采购计划明细
     *
     * @param createReqVOS 创建信息
     * @return 编号
     */
    void createPurchaseEngineeringDetailBatch(@Valid List<PurchaseEngineeringDetailSaveReqVO> createReqVOS);

    /**
     * 更新工程采购计划明细
     *
     * @param updateReqVO 更新信息
     */
    void updatePurchaseEngineeringDetail(@Valid PurchaseEngineeringDetailSaveReqVO updateReqVO);

    /**
     * 删除工程采购计划明细
     *
     * @param id 编号
     */
    void deletePurchaseEngineeringDetail(Long id);

    /**
    * 批量删除工程采购计划明细
    *
    * @param ids 编号
    */
    void deletePurchaseEngineeringDetailListByIds(List<Long> ids);

    /**
     * 获得工程采购计划明细
     *
     * @param id 编号
     * @return 工程采购计划明细
     */
    PurchaseEngineeringDetailDO getPurchaseEngineeringDetail(Long id);

    /**
     * 获得工程采购计划明细分页
     *
     * @param pageReqVO 分页查询
     * @return 工程采购计划明细分页
     */
    PageResult<PurchaseEngineeringDetailDO> getPurchaseEngineeringDetailPage(PurchaseEngineeringDetailPageReqVO pageReqVO);

    void deleteByPlanId(Long planId);

    List<PurchaseEngineeringDetailDO> getByPlanId(Long planId);
}